import { getAction, deleteAction, putAction, postAction, downFilePost, downFile, uploadAction } from '@/api/manage'



/**
 * 综治组织及综合业务
 */

//综治中心
// 综治列表
const institution = params => getAction(`/xl-comprehensive-management-mechanism/selectPage`,params)
//导出表格
const getTempletExcel= params => downFile(`/excel/getExcel`,params)
//获取导入模板
const getTemplet = () => getAction(`/xl-comprehensive-management-mechanism/importTemplate`)
//通过Excel导入
const updataIon = params => uploadAction(`/xl-video-networking-information-center/importExcel`,params)
//综治队伍
const getAgencyDetails = params => getAction(`/xl-comprehensive-management-team/selectPage`,params)
//获取模板
const getSLExcel = params => getAction(`/xl-video-networking-information-center/importTemplate`)


//群防群控组织
const components = params => getAction(`/xl-mass-prevention-and-control-organization/selectPage`,params)
//导出表格
const getexcelCom = parans => downFile(`/xl-mass-prevention-and-control-organization/exportXls`,parans)
//导入
const updataCom = params => uploadAction(`/xl-mass-prevention-and-control-organization/importExcel`,params)
//队伍列表
const getCAgencyDetails = params => getAction(`/xl-mass-prevention-and-control-ranks/selectPage`,params)
//获取导入模板
const getQKexcel = () => getAction(`/xl-mass-prevention-and-control-organization/importTemplate`)

//综治中心
const centrality = params => getAction(`/xl-comprehensive-management-center/selectPage`,params)
//导出表格
const getexcelcen = params => downFile(`/xl-comprehensive-management-center/exportXls`,params)
//导入表格
const updatacen = params => uploadAction(`/xl-comprehensive-management-center/importExcel`,params)
//联网信息中心列表
const centralityList = params => getAction(`/xl-video-networking-information-center/selectPage` , params)
//导出表格
const getexcelcent = params => downFile(`/xl-video-networking-information-center/exportXls`,params)
//导入表格
const updatacent = params => uploadAction(`/xl-video-networking-information-center/importExcel`,params)
//获取导入的模板
const getZXexcel = () => getAction(`/xl-comprehensive-management-center/importTemplate`)
/**
 *
 * @param params
 * @returns {AxiosPromise}
 * @constructor
 * 楼栋长
 */
//楼栋长
const BuildingLong = params => getAction(`/xl-building-manager/selectPage`,params)
//导出表格
const getexcelBui = params => downFile(`/xl-building-manager/exportXls`,params)
//导入表格
const updataBui =params => uploadAction(`/xl-building-manager/importExcel`,params)
//获取导入模板
// const getBuExcel = () => getAction(`/xl-building-manager/importTemplate`)
const getBuExcel = params => getAction(`/excel/getExcel`,params)
//综治领导责任制
const responsibilitySystem = params => getAction(`/xl-leadership-responsibility-system/selectPage`,params)
//导出表格
const getexcelres = params =>  downFile(`/xl-leadership-responsibility-system/exportXls`,params)
//导入表格
const updatares = params => uploadAction(`/xl-leadership-responsibility-system/importExcel`,params)
//获取导入模板
const getLDexcel = () => getAction(`/xl-leadership-responsibility-system/importTemplate`)


export {
  getLDexcel,
  getBuExcel,
  getSLExcel,
  getZXexcel,
  getQKexcel,
  getTemplet,
  getexcelBui,
  updataBui,
  getexcelres,
  updatares,
  updatacent,
  getexcelcent,
  updatacen,
  getexcelcen,
  getexcelCom,
  updataCom,
  institution,
  updataIon,
  getTempletExcel,
  getAgencyDetails,
  components,
  getCAgencyDetails,
  centrality,
  centralityList,
  BuildingLong,responsibilitySystem
}
